<form>
	<table class="form-table">
		<tr>
			<th>Category</th>
			<td><input type="text" verify="notNull" autocomplete_action="categories#autocomplete" name="category"/></td>
			<td rowspan="6">
				<div
					autodisplay_action="requests#suggestForNewItem" ejs="requests/suggestions"
					autodisplay_events="change"
					data-extra_args_collector="collectFormData"
					go_up="form" go_down="input"
					preserve_checkboxes="true"
					></div>
			</td>
		</tr>
		<tr>
			<th>Name</th>
			<td><input class="input-box" type="text" size="35" verify="notNull" name="name"
				value="<%=(this.search_string||'').tagpropEscape()%>"/></td>
		</tr>
		<tr>
			<th>Description</th>
			<td><textarea class="input-box" name="description" cols="37" rows="5"/></td>
		</tr>
		<tr>
			<th>Tags</th>
			<td><input class="input-box" type="text" name="tags" size="35"
				autocomplete_action="tags#autocomplete" multi_complete="default" multi_complete_padright=" "
				data-extra_args_collector="collectValueFromElement" extra_arg_name="preferred_category_id"
				go_up="form" go_down="[name=category_id]"
				/></td>
		</tr>

		<tr>
			<th>Add picture</th>
			<td>
				<input type="file" name="imagefile" size="20" style="width:60%"/>
			</td>
		</tr>

		<tr>
			<th colspan="2" align="left">
				Post on my wall?
				<input type="checkbox" name="post_on_wall" checked="true"/>
			</th>
		</tr>

		<tr>
			<td colspan="2">
				<button style="width:100%"
					action="items#add"
					render_parent="[container=dialog]"
					render_parent_ejs="items/succeed_message_lend"
					trigger_along="reload-requests reload-suggestions rerun-last-search"
					>Offer item!</button>
			</td>
		</tr>
	</table>
</form>
